
doctype html
head
	title 
	meta(charset="utf-8")
	style
		include style.css
body
	script(src="remark.min.js")
	script.
		function getParameterByName(name, url) {
			if (!url) {
			  url = window.location.href;
			}
			name = name.replace(/[\[\]]/g, "\\$&");
			var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
				results = regex.exec(url);
			if (!results) return null;
			if (!results[2]) return '';
			return decodeURIComponent(results[2].replace(/\+/g, " "));
		}
		var md = getParameterByName('md');
		if (md.length == 0)
			md = 'ppt.md';
		var req = new XMLHttpRequest();
		req.onreadystatechange = function() {
			if (req.readyState == 4 || req.readyState == 'complete') {
				var slideshow = remark.create({source:req.responseText});
			}
		}
		req.open("GET", md, true);
		req.send();
